package edu.hrbu.kwaidu.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xudengyu
 */
@Data
@NoArgsConstructor
public class CustomException extends RuntimeException {
    // 错误码
    private Integer code;

    // 错误信息
    private String message;

    public CustomException(String message){
        this.message=message;
    }

}
